import request from "@/utils/request";

/**
 * 工单状态统计
 * @param query
 * @returns {AxiosPromise}
 */
export function wkordStatusByDateRange(query) {
    return request({
        url: '/wbzj-biz/wkordStstc/getPfmStatusByDateRange',
        method: 'get',
        params: query
    })
}

/**
 * 师傅状态统计
 * @param query
 * @returns {AxiosPromise}
 */
export function workerStatusByDateRange(query) {
    return request({
        url: '/wbzj-user/workerStstc/getWorkerStatusByDateRange',
        method: 'get',
        params: query
    })
}

/**
 * 厂商状态统计
 * @param query
 * @returns {AxiosPromise}
 */
export function pdrStatusByDateRange(query) {
    return request({
        url: '/wbzj-user/workerStstc/getPdrStatusByDateRange',
        method: 'get',
        params: query
    })
}

/**
 * 城市 top 统计
 * @param query
 * @returns {AxiosPromise}
 */
export function cityTopByDateRange(data) {
    return request({
        url: '/wbzj-biz/wkordStstc/getPdrOrdCityTop',
        method: 'post',
        data: data
    })
}

/**
 * 工单按日期统计
 * @param query
 * @returns {AxiosPromise}
 */
export function wkOrdDateByDateRange(data) {
    return request({
        url: '/wbzj-biz/wkordStstc/getPdrOrdData',
        method: 'post',
        data: data
    })
}

export function getOrderSettlemSmry(query) {
    return request({
        url: '/wbzj-biz/wkordStstc/getOrderSettlemSmry',
        method: 'get',
        params: query
    })
}


export function getOrderNoSettlemSmry(query) {
    return request({
        url: '/wbzj-biz/wkordStstc/getOrderNoSettlemSmry',
        method: 'get',
        params: query
    })
}

/**
 * 厂商结账汇总列表
 * @param data
 * @returns {AxiosPromise}
 */
export function listPdrSettlemSmry(data) {
    return request({
        url: '/wbzj-biz/wkordStstc/getPdrSettlemSmryPageList',
        method: 'post',
        data: data
    })
}

/**
 * 厂商状态统计
 * @param query
 * @returns {AxiosPromise}
 */
export function getPfmStatusByWorkStatus(query) {
    return request({
        url: '/wbzj-biz/wkordStstc/getPfmStatusByWorkStatus',
        method: 'get',
        params: query
    })
}
